From 1bba3b0a3866f6f4cd7c5b7f5813eb9db56267ce Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 13 Jun 2015 17:57:19 -0400 Subject: [PATCH] Avoid uninitialized variables clang complains that these may be used uninitialized. --- gtk/gtkplacessidebar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index f767e14969..0255ed15f9 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1701,8 +1701,8 @@ start_drop_feedback (GtkPlacesSidebar *sidebar, GtkTreeIter iter; GtkTreeIter iter_prev; GtkTreePath *path_prev; - gint new_bookmark_col_index; - SectionType section_type; + gint new_bookmark_col_index = 0; + SectionType section_type = SECTION_BOOKMARKS; /* Use column index of previous bookmark to calculate index for "new bookmark" */ path_prev = gtk_tree_path_new_from_indices (sidebar->new_bookmark_index - 1, -1); -- 2.30.2